import React, { Component } from 'react'
import Detail from '@/containers/Detail'
import { addArticleVisitor } from '@/services/detail'
export default class Index extends Component {
  componentDidMount() {
    document.title = '文章详情'
    addArticleVisitor(this.props?.match?.params?.id || 1)
  }
  render() {
    return <Detail id={this.props.match.params.id} />
  }
}
